package com.framework.model.common.vo;

import com.framework.common.annotation.DataTypeTarget;
import com.framework.common.annotation.QueryParam;
import com.framework.common.model.dataType.DataTypeConstant;
import com.framework.model.common.Annex;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * @author 龘鵺
 * @version 1.0
 * @className com.framework.model.common.vo
 * @description 附件视图类
 * @datetime 2025-01-09 11:11:11
 */
public class AnnexVo extends Annex implements Serializable {
    /**
     * 启用禁用名称
     */
    @DataTypeTarget(type = DataTypeConstant.DATA_TYPE_INT_TO_LEBEL, fields = "enableStatus", code = "enableStatus")
    @QueryParam(name = "enableStatus", code = "p.ENABLE_STATUS")
    private String enableStatusName;

    /**
     * 关联状态名称
     */
    @DataTypeTarget(type = DataTypeConstant.DATA_TYPE_INT_TO_LEBEL, fields = "relationStatus", code = "relationStatus")
    @QueryParam(name = "relationStatus", code = "p.RELATION_STATUS")
    private String relationStatusName;

    /**
     * 上传附件类
     */
    private MultipartFile file;

    public String getEnableStatusName() {
        return enableStatusName;
    }

    public void setEnableStatusName(String enableStatusName) {
        this.enableStatusName = enableStatusName;
    }

    public String getRelationStatusName() {
        return relationStatusName;
    }

    public void setRelationStatusName(String relationStatusName) {
        this.relationStatusName = relationStatusName == null ? null : relationStatusName.trim();
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }
}
